<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<table>
<c:forEach var="video" items="${videos}">
        <tr>
            <td>
                <table class="videoItemTable" width="100%">
                    <thead>
                        <td colspan="2">
                            <c:if test="${!video.available}"><span style="color:red;">The author of this video has disabled embeded video, so we can not fetch it.</span></c:if>
                            <strong><fmt:formatDate value="${video.timeUploaded}" pattern="MM/dd/yy hh:mm"/> ${video.title}</strong>
                        </td>
                    </thead>
                    <tr>
                        <c:if test="${!empty video.thumbnailUrl}">
                            <td valign="top">
                                <img src="${video.thumbnailUrl}" alt="${video.title}"/><br/>
                            </td>
                        </c:if>
                        <td valign="top" width="500">
                            ${video.description}<br/>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
</c:forEach>
</table>
